From: Álvaro Fernández Rojas Date: Tue, 4 Nov 2025 13:40:22 +0000 (+0100) Subject: src: remove pragma once in headers X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22%24PHP_SELF/%22https:/collectd.org/%22%24PHP_SELF?a=commitdiff_plain;h=6d353ff96826b065b3234a3bd89f73d307843d98;p=project%2Fodhcp6c.git src: remove pragma once in headers Switch existing headers to defines instead of pragma once. Signed-off-by: Álvaro Fernández Rojas --- diff --git a/src/odhcp6c.h b/src/odhcp6c.h index 7df4d14..7970a1e 100644 --- a/src/odhcp6c.h +++ b/src/odhcp6c.h @@ -13,7 +13,8 @@ * */ -#pragma once +#ifndef _ODHCP6C_H_ +#define _ODHCP6C_H_ #include #include @@ -546,3 +547,5 @@ void odhcp6c_expire(bool expire_ia_pd); uint32_t odhcp6c_elapsed(void); struct odhcp6c_opt *odhcp6c_find_opt(const uint16_t code); struct odhcp6c_opt *odhcp6c_find_opt_by_name(const char *name); + +#endif /* _ODHCP6C_H_ */ diff --git a/src/ra.h b/src/ra.h index 34d8cb4..a869b5e 100644 --- a/src/ra.h +++ b/src/ra.h @@ -13,7 +13,8 @@ * */ -#pragma once +#ifndef _RA_H_ +#define _RA_H_ #include #include @@ -53,3 +54,5 @@ int ra_init(const char *ifname, const struct in6_addr *ifid, unsigned int options, unsigned int holdoff_interval); bool ra_link_up(void); bool ra_process(void); + +#endif /* _RA_H_ */